package van.planifolia.vo;

import lombok.Data;

/**
 * Created by Intellij IDEA<br>
 * 公共的返回结果信息
 * @author Planifolia.Van
 * @version 1.0
 * @date 2022/10/10 14:47
 */
@Data
public class ComResult {

    private Integer code;
    private String msg;
    private Object data;

    public ComResult(Integer code,String msg,Object data){
        this.code=code;
        this.msg=msg;
        this.data=data;
    }
    public ComResult(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }

    @Override
    public String toString() {
        return "ComResult{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
